gcc helloworld.c -o helloworld `pkg-config --cflags --libs glib-2.0 gthread-2.0`

ret="$?"
#echo "ret:$ret"
if [ "0" == "$ret" ]; then
echo "编译成功。"
./helloworld
else
echo "编译失败！"
fi
